const APIS = {
    // 认证管理
    login: {
        method: 'post',
        url: '/login/'
    },
    loginOut: {
        method: 'delete',
        url: '/login/'
    },
    logon: {
        method: 'post',
        url: '/login/logon/'
    },
    getLogonText: {
        method: 'get',
        url: '/login/logon/'
    },

    // 个人数据管理
    getMyUser: {
        method: 'get',
        url: '/index/my-user/'
    },
    editMyUser: {
        method: 'put',
        url: '/index/my-user/'
    },

    // 文章综合管理
    addArticle: {
        method: 'post',
        url: '/article/'
    },
    editArticle: {
        method: 'put',
        url: '/article/'
    },
    delArticle: {
        method: 'delete',
        url: '/article/'
    },
    upArticle: {
        method: 'put',
        url: '/article/up/'
    },
    downArticle: {
        method: 'put',
        url: '/article/down/'
    },
    getArticleListByUser: {
        method: 'get',
        url: '/article/by-user/'
    },
    getArticleById: {
        method: 'get',
        url: '/open/by-article/'
    },
    getArticleListByTop: {
        method: 'get',
        url: '/open/by-top/'
    },
    getArticleListByNew: {
        method: 'get',
        url: '/open/by-new/'
    },
    getArticleListByFind: {
        method: 'get',
        url: '/article/by-find/'
    },
    getArticleListByIds: {
        method: 'post',
        url: '/article/by-ids/'
    },

    // 文章分享综合管理
    addShare: {
        method: 'post',
        url: '/share/'
    },
    delShare: {
        method: 'delete',
        url: '/share/'
    },
    getShareListByFriend: {
        method: 'get',
        url: '/share/by-friend/'
    },
    getShareListByUser: {
        method: 'get',
        url: '/share/by-user/'
    },

    // 用户关注综合管理/attention/
    addAttention: {
        method: 'post',
        url: '/attention/'
    },
    delAttention: {
        method: 'delete',
        url: '/attention/'
    },
    getAttentionListByUser: {
        method: 'get',
        url: '/attention/'
    },
    getAttentionByConcerned: {
        method: 'get',
        url: '/attention/be-concerned/'
    },

    // 用户综合管理
    addUser: {
        method: 'post',
        url: '/user-dto/'
    },
    editUser: {
        method: 'put',
        url: '/user-dto/'
    },
    delUser: {
        method: 'delete',
        url: '/user-dto/'
    },
    getUserList: {
        method: 'get',
        url: '/user-dto/'
    },
    getUserListByOpen: {
        method: 'post',
        url: '/index/open/'
    },
    // 图库综合管理
    addPicture: {
        method: 'post',
        url: '/picture/'
    },
    delPicture: {
        method: 'delete',
        url: '/picture/'
    },
    delPictureByUrl: {
        method: 'delete',
        url: '/picture/by-url/'
    },
    getPictureListByUser: {
        method: 'get',
        url: '/picture/by-user/'
    },

    // 商品综合管理
    addBook: {
        method: 'post',
        url: '/book/'
    },
    editBook: {
        method: 'put',
        url: '/book/'
    },
    delBook: {
        method: 'delete',
        url: '/book/'
    },
    getBookById: {
        method: 'get',
        url: '/open/by-book/'
    },
    getBookByBuyer: {
        method: 'get',
        url: '/book/by-buyer/'
    },
    getBookByUser: {
        method: 'get',
        url: '/book/by-user/'
    },
    // 购买
    BuyBook: {
        method: 'put',
        url: '/book/buy/'
    },
    // 取消购买
    CancelBook: {
        method: 'put',
        url: '/book/cancel/'
    },
    // 确认收货
    ReceiptBook: {
        method: 'put',
        url: '/book/receipt/'
    },
    // 发货
    ShipmentsBook: {
        method: 'put',
        url: '/book/shipments/'
    },

}
export default APIS